package com.cloud.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @描述:Fegin声明式调用远程服务
 * @类名:
 * @作者: yangshuang
 * @创建时间: 2017/6/26 17:15
 * @版本: v1.0
 */
@FeignClient(value = "service-provider")
public interface ComputeClient {
   @RequestMapping(value = "/compute/add",method = RequestMethod.GET)
    Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);
}
